<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>条件渲染学习</h1>
        <h1 v-if="number==1">{{number}}</h1>
        <h1 v-else-if="number==2">{{number}}</h1>
        <h1 v-else>Oh no 😢</h1>
    </div>
</body>
<script type="application/javascript">
    new Vue({
        el: '#root',
        data:{
            awesome: true,
            number: 1
        }
    })
</script>
</html>
